home *** CD-ROM | disk | FTP | other *** search
- Path: news.cyberport.com!usenet
- From: tangent@cyberport.com (Warren Young)
- Newsgroups: comp.lang.c++
- Subject: Re: Does Borland share these MSVC++ problems?
- Date: Sun, 24 Mar 1996 13:45:03 GMT
- Organization: none
- Message-ID: <31554f5c.13110582@news.cyberport.com>
- References: <4j2m6q$lg6@cnn.Princeton.EDU>
- NNTP-Posting-Host: ppp1.cyberport.com
- X-Newsreader: Forte Agent .99d/32.182
-
- john@meenie.Princeton.EDU (John Saponara) wrote:
-
- >1. Do index variables declared in the for statement persist after the loop?
-
- For the moment, yes, I think so, though 5.0 may have changed this. As
- you probably know, the new Draft Standard dictates that their scope is
- the for loop only. Since Borland tracks standards pretty closely, I'd
- say that if it isn't "fixed" in 5.0, it will be in the next version.
- 4.5 uses the "old" rules, though. Also, I'm sure you will be able to
- turn the "new" rules off with a command line switch.
-
- >2. Is there no `bool' builtin type?
-
- There is in 5.0, but not 4.5. Also, if you're using OWL, it defines
- its own bool. I think you can turn it off with a #define, though.
-
- >3. Must I return a value from a non-void function
- > even in a branch that calls exit(1)?
-
- It will compile, but it will warn you about it. You can turn it off,
- if you like. I think the switch is -w-rvl. Or, you can turn the
- warning off just for certain functions with the "warn" pragma.
-
- >4. Is there no list of candidate conversions to help
- > me find the cause of the compiler error:
- > `>' : 2 overloads have similar conversions
- > (for various operators)?
-
- Huh? Sorry, you lost me.
-
- >5. Are the POSIX functions (particularly sleep, link, unlink) unavailable?
-
- sleep and unlink are available. What does link do? If it has to do
- with UNIX symbolic and hard links, it _can't_ be available because DOS
- doesn't support them. They should all be available under Windows NT,
- though, and BC++ will generate NT executables.
-
- >6. Is there no iostream extension that takes the same vararg list as printf()?
- > In g++ you can write, for example: cout.form( "%s\n", charArray );
-
- Not yet, but I'm pretty sure it's coming, by way of ISO. If you
- really need this, it should be trivial to lift the code from GNU's
- libg++ and drop it into Borland's standard library since the source
- code is included.
-
- >I don't want to incite flames, only to know which (if any)
- >of these problems Borland C++ shares with MS Visual C++.
-
- I hope I've helped, but I don't really know which alternative you want
- for each of these questions. I mean, it isn't clear, for example, if
- you want sleep() or not.
-
- Anyway, I hope that's the info you were looking for.
-
- = Warren --
-